for (var i = 0; i < 10; ++i) {
    document.write("helloword" + "<br>")
    console.log("helloword")
}